{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}
{% import "stat/partial/search_renewable_demand_form.html" as search_stat_form_macro %}

{% block title %}万屏时代OPC--回收统计{% endblock %}

{% block panel_heading %}
  万屏时代OPC--回收统计
{% endblock %}

{% block panel_body %}
    {{ search_stat_form_macro.gen_form(form) }}

    <table id="sms-log-table" class="table table-bordered table-hover table-condensed table-striped table-responsive">
        <thead>
            <tr>
                <th>日期</th>
                <th>当日订单数</th>
                <th>回收数</th>
                <th>二次发布数</th>
                <th>赠送数</th>
                <th>作废数</th>
                <th>重发成功数</th>

            </tr>
        </thead>
        <tbody>
            {% for each in stats %}
            <tr>
                <td>{{ each.recovery_date | string }}</td>
                <td>{{ ro_mapping.get(each.recovery_date | string, 0) }}</td>
                <td>{{ each.renewable_cnt }}</td>
                <td>{{ each.republish_cnt }}</td>
                <td>{{ each.training_cnt }}</td>
                <td>{{ each.invalid_cnt }}</td>
                <td>{{ each.recovery_success_cnt }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>

{% endblock %}
